package com.oasis.oasislib.base;

import org.xutils.common.util.MD5;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by Administrator on 2018/3/27 0027.
 */
public class Constans {
    static String ip = "https://api.022c.com";
   // static String ip = "http://192.168.0.66";
    static String part = "/api.php" ;

    public static String update = ip+part+"/common/appversion";

    public static String yanzheng = ip+part+"/common/code" ;
    public static String register = ip+part+"/common/register" ;
    public static String login = ip+part+"/common/login" ;
    public static String changepsw = ip+part+"/common/changepassword";

    //我的请假信息接口
    public static String applymyinfo = ip+part+"/apply/myinfo";

    //请假接口
    public static String applyadd = ip+part+"/apply/add";

    //我的审批
    public static String mymanage = ip+part+"/apply/mymanage";
//请假详情
    public static String applyinfo = ip+part+"/apply/info";

    //执行审批操作
    public static String applydomanage = ip+part+"/apply/domanage";


    //返回部门列表
    public static String commongetteam = ip+part+"/common/getteam";


    //统计信息
    public static String applycountdata = ip+part+"/apply/countdata";




    //完善个人信息
    public static String commonuploadinfo = ip+part+"/common/uploadinfo";

    public static String applygetbase = ip+part+"/apply/getbase";


    public static String attendanceadd = ip+part+"/attendance/add";


    public static String attendanceinfo = ip+part+"/attendance/info";

    public static String commongetattendancebase = ip+part+"/common/getattendancebase";

    //下面开始报销模块
    public static String moneyapplygetbase = ip+part+"/moneyapply/getbase";
    public static String moneyapplygetadd = ip+part+"/moneyapply/add";

    public static String moneyapplymyinfo = ip+part+"/moneyapply/myinfo";

    public static String moneyapplyinfo = ip+part+"/moneyapply/info";


    public static String moneyapplymymanage = ip+part+"/moneyapply/mymanage";

    public static String moneyapplydomanage = ip+part+"/moneyapply/domanage";


    public static String moneyApplySum = ip+part+"/index/moneyApplySum";

    //请假上传图片
    public static String addimages = ip+part+"/apply/addimages";

    //个推
    public static String tuisendbase = ip+part+"/tui/sendbase";
    //推送列表
    public static String tuilist = ip+part+"/tui/tuilist";



    public static String access_token(){
        Date day=new Date();
        SimpleDateFormat df = new SimpleDateFormat("yyyyMMdd");
        String dd = df.format(day) ;


        String apikey = "dBJ$vY9sY#uGKQhuY^DkJsvtIx0ZHX%R";

        String finalstring =  dd+apikey ;

        return MD5.md5(finalstring) ;


        //return "7289194177341378fe9736bc220b6b68" ;
    }
}
